package Sort.面试;

import freemarker.core.JSONOutputFormat;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * todo 求x的y次幂
 *
 *     1. 调用Math.pow(x,y)
 */
public class GetPow {

    public static void main(String[] args) {
        System.out.println(Math.pow(2,3));



        //
        int[] arr = {1,2,3,4};

        System.out.println(Arrays.stream(arr).sum());

        System.out.println(1 << 2);




    }



}
